<%@ Page Language="VB" MasterPageFile="~/master pages/ClientMasterPage.master" AutoEventWireup="false"
    CodeFile="frmDataList.aspx.vb" Inherits="Client_frmDataList" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table class="box" width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
        <tbody>
            <tr>
                <td class="boxheading" width="100%" height="14">
                    <h2 class="boxtitle">
                        Product Detail
                    </h2>
                </td>
            </tr>
        </tbody>
    </table>
    <table align="center">
        <tr>
            <td>
                &nbsp;</td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                Sort :<asp:DropDownList ID="ddlsort" runat="server" AutoPostBack="True">
                    <asp:ListItem>All</asp:ListItem>
                    <asp:ListItem>Most Viewed</asp:ListItem>
                    <asp:ListItem>Brand</asp:ListItem>
                    <asp:ListItem>Price</asp:ListItem>
                    <asp:ListItem>Discount</asp:ListItem>
                </asp:DropDownList></td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                <table align="center" style="border: 1px; border-color: White; border-style: solid;">
                    <tr>
                        <td>
                            <asp:DataList ID="DataList" runat="server" BackColor="White" BorderColor="#ffffff"
                                BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2" GridLines="Both" 
                                RepeatColumns="4" RepeatDirection="Horizontal" Height="232px">
                                <ItemTemplate>
                                    <table  id="table1">
                                        <tr>
                                            <td>
                                                <a href="frmViewProduct.aspx?ProductId=<%#Container.DataItem("ProductId")%>">
                                                    <asp:Image ID="image" runat="server" ImageUrl='<%# eval("PhotoPath", "../Uploads/{0}") %>'
                                                        Height="161px" Width="94px" /></a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center">
                                                <a href="frmViewProduct.aspx?ProductId=<%#Container.DataItem("ProductId")%>">
                                                    <asp:Label runat="server" ID="lblPrice" Text='<%# eval("Price") %>'></asp:Label>
                                                $</a></td>
                                        </tr>
                                        <tr>
                                            <td align="center">
                                                <a href="frmViewProduct.aspx?ProductId=<%#Container.DataItem("ProductId")%>">
                                                    <asp:Label ID="lblBrand" runat="server" Text='<%# Eval("Brand") %>'></asp:Label></a></td>
                                        </tr>
                                        <tr>
                                            <td align="center">
                                                <a href="frmViewProduct.aspx?ProductId=<%#Container.DataItem("ProductId")%>">
                                                    <asp:Label ID="lblDiscount" runat="server" Text='<%# Eval("Discount") %>'></asp:Label>
                                                % Dis</a></td>
                                        </tr>
                                        <%-- --%>
                                    </table>
                                </ItemTemplate>
                                <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                                <SelectedItemStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                                <ItemStyle BackColor="#ffffff" ForeColor="#8C4510" />
                                <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
                            </asp:DataList>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <center>
                                <asp:LinkButton ID="lnkPrevious" runat="server" Enabled="False">Previous</asp:LinkButton>
                                &nbsp;
                                <asp:LinkButton ID="lnkNext" runat="server">Next</asp:LinkButton>
                            </center>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            &nbsp;</td>
                    </tr>
                </table>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td align="center">
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
            </td>
        </tr>
    </table>
</asp:Content>
